package com.wangshidai.mapper;

import com.wangshidai.entity.SysRolePermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Entity com.wangshidai.entity.SysRolePermission
 */
@Repository
public interface SysRolePermissionMapper extends BaseMapper<SysRolePermission> {
    @Select("select permission_id from sys_role_permission where role_id=#{roleId}")
    List<Long> queryPermissionId(long roleId);
}




